package com.huawei.appmarket.framework.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import o.Logger;

public class SimpleExpandScrollLayout extends ExpandScrollLayout {
    private View ˊ;

    public SimpleExpandScrollLayout(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    protected void ˎ(int i, int i2) {
        if (ˎ() && this.ˏ != null && this.ˊ != null) {
            this.ˏ.measure(i, MeasureSpec.makeMeasureSpec(0, 0));
            this.ˋ = this.ˏ.getMeasuredHeight();
            this.ˎ = this.ˋ;
            this.ˊ.getLayoutParams().height = getMeasuredHeight();
            setMeasuredDimension(getMeasuredWidth(), this.ˋ + this.ˊ.getMeasuredHeight());
            if (Logger.ˎ()) {
                Logger.ˎ("SimpleExpandScrollLayout", "onMeasure, getMeasuredHeight = " + getMeasuredHeight() + ", viewPager.height = " + this.ˊ.getMeasuredHeight());
            }
        }
    }

    public void setContentView(View view) {
        this.ˊ = view;
    }
}
